//
//  YCAlertView3.h
//  CustomByWindow
//
//  Created by tangkexiong on 16/2/15.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YCAlertView3;

#pragma mark - YCAlertView3Cell

@interface YCAlertView3Cell : UICollectionViewCell

@property (weak, nonatomic) IBOutlet UILabel *label;
@end

#pragma mark - YCAlertView3Delegate

@protocol YCAlertView3Delegate <NSObject>

@optional
// 点击取消
- (void)alertView3DidCancel:(YCAlertView3 *)alertView;
// 点击功能按钮
- (void)alertView3:(YCAlertView3 *)alertView didClickedAtIndex:(NSInteger)index;

@end

#pragma mark - YCAlertView3

@interface YCAlertView3 : UIViewController

@property (weak, nonatomic) id<YCAlertView3Delegate> myDelegate;

@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UIView *alertView;
@property (weak, nonatomic) IBOutlet UICollectionView *myCollectionView;
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintAlertViewHeight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintBtnViewHeight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintTitleViewHeight;

+ (instancetype)instanceWithTitle:(NSString *)title message:(NSString *)message cancelBtnImg:(UIImage *)image delegate:(id<YCAlertView3Delegate>)delegate buttonTitles:(NSString *)btnTitle, ...NS_REQUIRES_NIL_TERMINATION;

- (void)show;

@end
